// source --> https://www.katleen.sk/wp-content/plugins/blog-designer-pro/js/ajax.js?ver=4.8.24 //For load more functionality jQuery(document).ready(function () { if(jQuery('.chosen-select').length > 0){ var config = { '.chosen-select': {}, '.chosen-select-deselect': {allow_single_deselect: true}, '.chosen-select-no-single': {disable_search_threshold: 10}, '.chosen-select-no-results': {no_results_text: 'Oops, nothing found!'}, '.chosen-select-width': {width: "95%"} } jQuery(".chosen-select").chosen(); } var $previous_height = jQuery('.bdp_single .navigation.post-navigation .nav-links .nav-previous').outerHeight(); var $next_height = jQuery('.bdp_single .navigation.post-navigation .nav-links .nav-next').outerHeight(); if($previous_height > $next_height) { jQuery('.bdp_single .navigation.post-navigation .nav-links .nav-next').css('min-height', $previous_height); jQuery('.bdp_single .navigation.post-navigation .nav-links .nav-previous').css('min-height', $previous_height); } else if($previous_height < $next_height) { jQuery('.bdp_single .navigation.post-navigation .nav-links .nav-next').css('min-height', $next_height); jQuery('.bdp_single .navigation.post-navigation .nav-links .nav-previous').css('min-height', $next_height); } if(jQuery('.flexslider').length > 0){ jQuery('.flexslider').flexslider({ animation: "slide", controlNav: false, prevText: "", nextText: "" }); } jQuery('#bdp-filer-change select').on('change', function () { var template = jQuery('#blog_template').val(); if (template == 'invert-grid') { jQuery('.bdp-row').html(''); } else if (template == 'news') { jQuery('.news-wrapper').remove(); } else { var min_height = jQuery('.logbook.flatLine').height(); jQuery('.logbook.flatLine').css('min-height', min_height); jQuery('.logbook.flatLine').append('
'); } jQuery('.wl_pagination_box').hide(); jQuery('.bdp-load-more').hide(); var $this = jQuery(this).val(); jQuery.ajax({ url: ajaxurl, type: 'POST', data: 'action=filter_change&' + jQuery('#bdp-filer-change').serialize(), cache: false, success: function (response) { if (template == 'invert-grid') { jQuery('.bdp-row').append(response); } else if (template == 'news') { jQuery('.bdp_wrapper').prepend(response); } else { var jsmasonry = jQuery(".logbook.flatLine.flatNav.flatButton"); jsmasonry.html(response); jQuery(".my_logbook").logbook({ levels: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], showYears: 10, del: 130, vertical: false, isPostLink: false, isYears: false, triggerWidth: 800, itemMargin: parseInt(jQuery('#blog_itemMargin').val()), customSize: { "sheet": {"itemWidth": jQuery('#blog_itemWidth').val(), "itemHeight": jQuery('#blog_itemHeight').val(), "margin": jQuery('#blog_itemMargin').val()}, "active": {"itemWidth": jQuery('#blog_itemWidth').val(), "itemHeight": jQuery('#blog_itemHeight').val(), "imageHeight": "150"} }, id: 10, easing: jQuery('#blog_easing').val(), enableSwipe: true, startFrom: 'first', enableYears: true, class: { readMore: '.lb-read-more', }, hideLogbook: (jQuery('#blog_hideLogbook').val() == 1) ? true : false, hideArrows: false, closeItemOnTransition: false, autoplay: (jQuery('#blog_autoplay').val() == 1) ? true : false, scrollSpeed: parseInt(jQuery('#blog_scrollSpeed').val()), }); //For Cool Horizontal Template var maxHeight = Math.max.apply(null, jQuery('.horizontal .post-title').map(function () { return jQuery(this).height(); }).get()); jQuery('.horizontal .post-title').css('min-height', maxHeight + 70); var maxHeight = Math.max.apply(null, jQuery('.horizontal .post_content_wrap').map(function () { return jQuery(this).height(); }).get()); jQuery('.horizontal .post_content_wrap').css('min-height', Math.round(maxHeight)); var maxHeight = Math.max.apply(null, jQuery('.horizontal .post_hentry').map(function () { return jQuery(this).height(); }).get()); jQuery('.horizontal .post_hentry').css('min-height', Math.round(maxHeight)); var maxHeight = Math.max.apply(null, jQuery('.horizontal .post-content-area .post_wrapper').map(function () { return jQuery(this).height(); }).get()); jQuery('.horizontal .post-content-area .post_wrapper').css('min-height', Math.round(maxHeight)); jQuery('.logbook.flatLine').css('min-height', ''); } if ($this == null) { jQuery('.wl_pagination_box').show(); jQuery('.bdp-load-more').show(); } } }); }); //For Overlay Horizontal Template var maxHeight = Math.max.apply(null, jQuery('.overlay_horizontal .post_hentry').map(function () { return jQuery(this).height(); }).get()); if (maxHeight == 0) { maxHeight = '420'; } jQuery('.logbook .lb-item .post-image img').css('min-height', Math.round(maxHeight)); jQuery('.logbook .lb-item .post-image').css('min-height', Math.round(maxHeight)); //For Cool Horizontal Template var maxHeight = Math.max.apply(null, jQuery('.horizontal .post-title').map(function () { return jQuery(this).height(); }).get()); jQuery('.horizontal .post-title').css('min-height', maxHeight + 70); var maxHeight = Math.max.apply(null, jQuery('.horizontal .post_content_wrap').map(function () { return jQuery(this).height(); }).get()); jQuery('.horizontal .post_content_wrap').css('min-height', Math.round(maxHeight)); var maxHeight = Math.max.apply(null, jQuery('.horizontal .post_hentry').map(function () { return jQuery(this).height(); }).get()); jQuery('.horizontal .post_hentry').css('min-height', Math.round(maxHeight)); var maxHeight = Math.max.apply(null, jQuery('.horizontal .post-content-area .post_wrapper').map(function () { return jQuery(this).height(); }).get()); jQuery('.horizontal .post-content-area .post_wrapper').css('min-height', Math.round(maxHeight)); //For load more functionality function bdp_load_onscroll_ajax() { var paged = parseInt(jQuery('#bdp-load-more-hidden #paged').val()); var $timeline_year = jQuery('#bdp-load-more-hidden #timeline_previous_year').val(); paged = paged + 1; var max_num_pages = parseInt(jQuery('#bdp-load-more-hidden #max_num_pages').val()); jQuery('.bdp-load-more-btn').addClass('loading'); this_year = jQuery('#bdp-load-more-hidden #this_year').val(); jQuery('.bdp-load-more-btn').fadeOut(); if (paged <= max_num_pages) { jQuery('.loading-image').fadeIn(); jQuery.ajax({ url: ajaxurl, type: 'POST', data: 'action=get_load_onscroll_blog&' + jQuery('#bdp-load-more-hidden').serialize(), cache: false, success: function (response) { var jsmasonry = jQuery(".bdp-load-onscroll-pre").find("div"); jQuery(window).bind('scroll', bdp_animate_elems); // loop through each item to check when it animates if (jsmasonry.hasClass('bdp-js-masonry')) { if (jQuery('.bdp-js-masonry.masonry').hasClass('bdp_glossary') || jQuery('.bdp-js-masonry.masonry').hasClass('bdp_boxy')) { jQuery('.bdp-js-masonry.masonry').append(response); jQuery('.bdp-js-masonry.masonry').imagesLoaded(function () { jQuery('.bdp-js-masonry.masonry').masonry('reloadItems').masonry('layout').masonry(); }); } else { jQuery('.bdp-js-masonry.masonry').append(response); jQuery(".bdp-js-masonry.masonry").append(response).masonry('reload'); } } else if (jsmasonry.hasClass('timeline_bg_wrap')) { jQuery('div.timeline_back').append(response); var only_year = jQuery('div.timeline_back').find('.timeline_year .only_year'); jQuery(only_year).each(function () { $timeline_year = jQuery(this).text(); }); jQuery('#bdp-load-more-hidden #timeline_previous_year').val(jQuery.trim($timeline_year)); } else if (jsmasonry.hasClass('bdp-grid-row')) { jQuery('div.bdp-grid-row').append(response); bdp_explore_content_center() } else if (jsmasonry.hasClass('story')) { jQuery('div.bdp-load-onscroll-pre .bdp_template.story').append(response); var $get_year = this_year; jQuery(response).find('.year-number').each(function () { if (jQuery(this).html() != '') { $get_year = jQuery(this).html(); } }); jQuery('#bdp-load-more-hidden #this_year').val(jQuery.trim($get_year)); } else if (jsmasonry.hasClass('boxy-clean')) { jQuery('.blog_template.boxy-clean > ul').append(response); bdp_get_boxy_clean_height(); } else if (jsmasonry.hasClass('brit_co')) { jQuery('div.bdp-load-onscroll-pre div.brit_co.bdp_brit_co').append(response); bdp_get_brit_co_height(); } else if (jsmasonry.hasClass('easy-timeline-wrapper')) { jQuery('.easy-timeline-wrapper .easy-timeline').append(response); easy_timeline_effects(); } else if (jsmasonry.hasClass('my_diary_wrapper')) { jQuery('.bdp-load-onscroll-pre .my_diary_wrapper').append(response); } else if (jsmasonry.hasClass('elina_wrapper')) { jQuery('.bdp-load-onscroll-pre .elina_wrapper').append(response); social_share_div(); } else if (jsmasonry.hasClass('masonry_timeline_wrapper')) { jQuery('.bdp-load-onscroll-pre .masonry_timeline_wrapper').append(response); masonry_timeline_fun(); } else if (jsmasonry.hasClass('invert-grid')) { jQuery('div.bdp-load-onscroll-pre .invert-grid-wrapper').append(response); } else if (jsmasonry.hasClass('brite-wrapp')) { jQuery('div.bdp-load-onscroll-pre .brite-wrapp').append(response); } else if(jsmasonry.hasClass('media-grid')) { jQuery('div.bdp-load-onscroll-pre .media-grid-wrapper').append(response); } else if(jsmasonry.hasClass('chapter')) { jQuery('div.bdp-load-onscroll-pre .bdp-row').append(response); } else { jQuery('div.bdp-load-onscroll-pre').append(response); } jQuery('.bdp-load-more-btn').removeClass('loading'); jQuery('.loading-image').fadeOut(); jQuery('.bdp-load-more-btn').fadeIn(); jQuery('div.bdp-load-onscroll').show(); jQuery('#bdp-load-more-hidden #paged').val(paged); if (paged == max_num_pages) jQuery('.bdp-load-more-btn').fadeOut(); jQuery('.flexslider').flexslider({ animation: "slide", controlNav: false, prevText: "", nextText: "" }); } }); } return false; } //For load more functionality jQuery(".bdp-load-more-btn").click(function () { bdp_load_more_ajax(); }); jQuery(".bdp-load-onscroll-btn").click(function () { var $select_value = jQuery('#bdp-filer-change select').val(); if ($select_value == null) { bdp_load_onscroll_ajax(); } }); var ajax_window = jQuery(window); ajax_window.bind("scroll touchstart", function () { if (jQuery('a.bdp-load-onscroll-btn').length >= 1) { var content_offset = jQuery('a.bdp-load-onscroll-btn').offset(); var top = Math.round(content_offset.top - jQuery(window).height()); if (jQuery(window).scrollTop() >= top) { if (jQuery('div.bdp-load-onscroll').is(':visible')) { jQuery('div.bdp-load-onscroll').hide(); jQuery('.bdp-load-onscroll-btn').trigger('click'); } } } }); jQuery(function () { var elems = jQuery('.animateblock'); var winheight = jQuery(window).height(); var fullheight = jQuery(document).height(); elems.each(function () { var elm = jQuery(this); var topcoords = elm.offset().top; if (topcoords < winheight) { // animate when top of the window is 3/4 above the element elm.addClass('animated'); elm.removeClass('animateblock'); } }); jQuery('.timeline').each(function () { if (jQuery(this).offset().top < winheight) { var width = jQuery(this).attr('data-width'); jQuery(this).animate({ width: width }, 1000); } }); jQuery(window).scroll(function () { bdp_animate_elems(); }); }); jQuery(document).on('click', '.bdp-wrapper-like .bdp-like-button', function (e) { e.preventDefault(); var button = jQuery(this); var post_id = jQuery(this).attr('data-post-id'); var security = jQuery(this).attr('data-nonce'); var allbuttons; allbuttons = jQuery('.bdp-button-' + post_id); var loader = allbuttons.next('#bdp-loader'); if (post_id !== '') { jQuery.ajax({ type: 'POST', url: ajaxurl, data: { action: 'get_bdp_process_posts_like', post_id: post_id, nonce: security }, beforeSend: function () { loader.html('
'); }, success: function (response) { var icon = response.icon; var count = response.count; allbuttons.html(icon + count); if (response.status === 'unliked') { var like_text = ajax_object.like; allbuttons.prop('title', like_text); allbuttons.removeClass('liked'); } else { var unlike_text = ajax_object.unlike; allbuttons.prop('title', unlike_text); allbuttons.addClass('liked'); } loader.empty(); } }); } return false; }); }); jQuery(function () { easy_timeline_effects(); social_share_div(); masonry_timeline_fun(); }); function social_share_div() { var maxWidth = Math.max.apply(null, jQuery('.post-media').map(function () { return jQuery(this).width(); }).get()); maxWidth = (maxWidth / 2) + 10; var cusstyle = '' jQuery('head').append(cusstyle); var previous_post_height = jQuery('.elina .nav-links .previous-post').height(); var next_post_height = jQuery('.elina .nav-links .next-post').height(); if (previous_post_height < next_post_height) { jQuery('.elina .nav-links .previous-post').css('min-height', next_post_height); } else { jQuery('.elina .nav-links .next-post').css('min-height', previous_post_height); } jQuery('.elina-footer').find('.social-component').append("
x
"); jQuery('.post-share-div > a.post-share').click(function () { jQuery(this).parents('.elina-footer').find('.social-component').addClass('open-content'); jQuery(this).parents('.elina-footer').find('.social-component > .social-share').addClass('add-eff'); }); jQuery('.social-share a.close-div').click(function () { jQuery(this).parents('.elina-footer').find('.social-component').removeClass('open-content'); jQuery(this).parents('.elina-footer').find('.social-component > .social-share').removeClass('add-eff'); }); jQuery('.elina.bdp_archive').find('.author-avatar-div').append('
'); } function masonry_timeline_fun() { jQuery('.masonry-timeline-wrapp .post-footer').find('.social-component').append("
x
"); jQuery('.masonry-timeline-wrapp .post-footer').each(function () { var social_icon_height = jQuery(this).find('.social-component').outerHeight(); var read_more_div_height = jQuery(this).find('.read-more-div').outerHeight(); var metabox_height = jQuery(this).find('.metadatabox').outerHeight(); var max_height = Math.max(social_icon_height, metabox_height + read_more_div_height); jQuery(this).css("max-height", max_height + 2); }); jQuery('.masonry-timeline-wrapp .post-footer a.post-share').click(function () { jQuery(this).parents('.post-footer').find('.social-component').addClass('open-content'); jQuery(this).parents('.post-footer').find('.metadatabox').css('opacity', 0); var social_icon_height = jQuery(this).parents('.post-footer').find('.social-component').outerHeight(); var metabox_height = jQuery(this).parents('.post-footer').find('.metadatabox').outerHeight(); var transform_css = 'translateY(-' + (metabox_height - 1) + 'px)'; jQuery(this).parents('.post-footer').find('.social-component').css('transform', transform_css); jQuery(this).parents('.post-footer').find('.social-component').css('opacity', 1); }); jQuery('.masonry-timeline-wrapp .post-footer a.close-div').click(function () { //jQuery(this).parents('.social-component').removeClass('open-content'); jQuery(this).parents('.post-footer').find('.metadatabox').removeAttr("style"); jQuery(this).parents('.post-footer').find('.social-component').removeAttr("style"); }); } function easy_timeline_effects() { var effect = jQuery('.easy-timeline').attr('data-effect'); jQuery('.easy-timeline li').each(function () { if (jQuery(this).offset().top > jQuery(window).scrollTop() + jQuery(window).height() * 0.75) { jQuery(this).addClass('is-hidden'); } else { jQuery(this).addClass(effect); } }); jQuery(window).on('scroll', function () { jQuery('.easy-timeline li').each(function () { if ((jQuery(this).offset().top <= (jQuery(window).scrollTop() + jQuery(window).height() * 0.75)) && jQuery(this).hasClass("is-hidden")) { jQuery(this).removeClass("is-hidden").addClass(effect); } }); }); } /*----------- code to apply same height to all template 4 li ---------------*/ function bdp_get_boxy_clean_height() { var divs = jQuery(".boxy-clean li.blog_wrap").not('.first_post'); var column = 4; if (divs.hasClass('three_column')) { column = 3; } else if (divs.hasClass('two_column')) { column = 2; } for (var i = 0; i < divs.length; i += column) { var heights = jQuery(".boxy-clean li.blog_wrap").not('.first_post').slice(i, i + column).map(function () { return jQuery(this).height(); }).get(); var maxHeight = Math.max.apply(null, heights); if (screen.width > 640) { jQuery(".boxy-clean li.blog_wrap").not('.first_post').slice(i, i + column).css('height', maxHeight + 50); } } } /*----------- code to apply same height to all template 4 li end ---------------*/ function bdp_animate_elems() { var elems = jQuery('.animateblock'); var winheight = jQuery(window).height(); var wintop = jQuery(window).scrollTop(); // calculate distance from top of window // loop through each item to check when it animates elems.each(function () { var elm = jQuery(this); if (elm.hasClass('animated')) { return true; } // if already animated skip to the next item var topcoords = elm.offset().top; // element's distance from top of page in pixels if (wintop > (topcoords - (winheight * 0.6))) { // animate when top of the window is 3/4 above the element elm.addClass('animated'); elm.removeClass('animateblock'); } }); jQuery('.timeline').each(function () { if (wintop > jQuery(this).offset().top - winheight) { var width = jQuery(this).attr('data-width'); jQuery(this).animate({ width: width }, 500); } }); } //For load more functionality function bdp_load_more_ajax() { var paged = parseInt(jQuery('#bdp-load-more-hidden #paged').val()); var this_year = jQuery('#bdp-load-more-hidden #this_year').val(); var $timeline_year = jQuery('#bdp-load-more-hidden #timeline_previous_year').val(); paged = paged + 1; var max_num_pages = parseInt(jQuery('#bdp-load-more-hidden #max_num_pages').val()); jQuery('.bdp-load-more-btn').addClass('loading'); jQuery('.bdp-load-more-btn').fadeOut(); jQuery('.loading-image').fadeIn(); if (paged <= max_num_pages) { jQuery.ajax({ url: ajaxurl, type: 'POST', data: 'action=get_loadmore_blog&' + jQuery('#bdp-load-more-hidden').serialize(), cache: false, success: function (response) { var jsmasonry = jQuery(".bdp-load-more-pre").find("div"); jQuery(window).bind('scroll', bdp_animate_elems); // loop through each item to check when it animates if (jsmasonry.hasClass('bdp-js-masonry')) { if (jQuery('.bdp-js-masonry.masonry').hasClass('bdp_glossary') || jQuery('.bdp-js-masonry.masonry').hasClass('bdp_boxy')) { jQuery('.bdp-js-masonry.masonry').append(response); jQuery('.bdp-js-masonry.masonry').imagesLoaded(function () { jQuery('.bdp-js-masonry.masonry').masonry('reloadItems').masonry('layout').masonry(); }); } else { jQuery('.bdp-js-masonry.masonry').append(response); jQuery(".bdp-js-masonry.masonry").append(response).masonry('reload'); } } else if (jsmasonry.hasClass('timeline_bg_wrap')) { jQuery('div.timeline_back').append(response); var only_year = jQuery('div.timeline_back').find('.timeline_year .only_year'); jQuery(only_year).each(function () { $timeline_year = jQuery(this).text(); }); jQuery('#bdp-load-more-hidden #timeline_previous_year').val(jQuery.trim($timeline_year)); } else if (jsmasonry.hasClass('story')) { jQuery('div.bdp_template.story').append(response); var $get_year = this_year; jQuery(response).find('.year-number').each(function () { if (jQuery(this).html() != '') { $get_year = jQuery(this).html(); } }); jQuery('#bdp-load-more-hidden #this_year').val(jQuery.trim($get_year)); } else if (jsmasonry.hasClass('bdp-grid-row')) { jQuery('div.bdp-grid-row').append(response); bdp_explore_content_center() } else if (jsmasonry.hasClass('boxy-clean')) { jQuery('.blog_template.boxy-clean > ul').append(response); bdp_get_boxy_clean_height(); } else if (jsmasonry.hasClass('brit_co')) { jQuery('div.bdp-load-more-pre div.brit_co.bdp_brit_co').append(response); bdp_get_brit_co_height(); } else if (jsmasonry.hasClass('easy-timeline-wrapper')) { jQuery('div.bdp-load-more-pre div.easy-timeline-wrapper .easy-timeline').append(response); easy_timeline_effects(); } else if (jsmasonry.hasClass('my_diary_wrapper')) { jQuery('.bdp-load-more-pre .my_diary_wrapper').append(response); } else if (jsmasonry.hasClass('elina_wrapper')) { jQuery('.bdp-load-more-pre .elina_wrapper').append(response); social_share_div(); } else if (jsmasonry.hasClass('masonry_timeline_wrapper')) { jQuery('.bdp-load-more-pre .masonry_timeline_wrapper').append(response); masonry_timeline_fun(); } else if (jsmasonry.hasClass('invert-grid')) { jQuery('div.bdp-load-more-pre .invert-grid-wrapper').append(response); } else if(jsmasonry.hasClass('brite-wrapp')) { jQuery('.bdp-load-more-pre .brite-wrapp').append(response); } else if(jsmasonry.hasClass('media-grid')) { jQuery('dp-load-more-pre .media-grid-wrapper').append(response); } else if(jsmasonry.hasClass('chapter')) { jQuery('.bdp-load-more-pre .bdp-row').append(response); } else { jQuery('div.bdp-load-more-pre').append(response); } jQuery('.bdp-load-more-btn').removeClass('loading'); jQuery('.loading-image').fadeOut(); jQuery('.bdp-load-more-btn').fadeIn(); jQuery('#bdp-load-more-hidden #paged').val(paged); if (paged == max_num_pages) jQuery('.bdp-load-more-btn').fadeOut(); jQuery('.flexslider').flexslider({ animation: "slide", controlNav: false, prevText: "", nextText: "" }); } }); } return false; } jQuery(window).load(function () { if(jQuery('.masonry').length > 0){ setTimeout(function () { jQuery('.masonry').imagesLoaded(function () { jQuery('.masonry').masonry({ columnWidth: 0, itemSelector: '.blog_masonry_item', isResizable: true }); }); }, 500); } bdp_get_boxy_clean_height(); bdp_get_brit_co_height(); bdp_explore_content_center(); }); function bdp_explore_content_center() { var main_height = jQuery('.bdp_blog_template.explore').height(); jQuery(".grid-overlay").each(function () { var overlay = jQuery(this).find('.blog_header').height(); var padd = main_height - overlay; var padding = padd / 2; jQuery(this).css('padding-top', padding); jQuery(this).css('padding-bottom', padding); }); } function bdp_get_brit_co_height() { var heights = jQuery(".image_wrapper").map(function () { return jQuery(this).height(); }).get(), maxHeight = Math.max.apply(null, heights); var content_heights = jQuery(".content_wrapper").map(function () { return jQuery(this).height(); }).get(), content_height = Math.max.apply(null, content_heights); jQuery('.britco').each(function () { var total_height = maxHeight + content_height + 30; jQuery(this).find('.bdp_blog_wraper').height(total_height); }); }; // source --> https://www.katleen.sk/wp-content/plugins/blog-designer-pro/js/SocialShare.js?ver=4.8.24 /* SocialShare - jQuery plugin */ (function ($) { function get_class_list(elem) { if (elem.classList) { return elem.classList; } else { return $(elem).attr('class').match(/\S+/gi); } } $.fn.ShareLink = function (options) { var defaults = { title: '', text: '', image: '', url: window.location.href, class_prefix: 's_' }; var options = $.extend({}, defaults, options); var class_prefix_length = options.class_prefix.length; var templates = { facebook: 'https://www.facebook.com/sharer.php?s=100&p[title]={title}&u={url}&t={title}&p[summary]={text}&p[url]={url}', plus: 'https://plus.google.com/share?url={url}', linkedin: 'https://www.linkedin.com/shareArticle?mini=true&url={url}&title={title}&summary={text}&source={url}', pinterest: 'https://www.pinterest.com/pin/create/button/?media={image}&url={url}&description={text}', twitter: 'https://twitter.com/intent/tweet?url={url}&text={text}', gmail: 'http://mail.google.com/mail/?view=cm&fs=1&to=&su={title}&body={text}&ui=1', whatsapp: 'whatsapp://send?text={url} {title}', pocket: 'https://getpocket.com/edit?url={url}&title={title}', tumblr: 'https://tumblr.com/share?s=&v=3&t={title}&u={url}', google: 'http://www.google.com/bookmarks/mark?op=add&bkmk={url}&title={title}&annotation={text}', webnews: 'http://www.webnews.de/einstellen?url={url}&title={title}', wordpress: 'http://wordpress.com/wp-admin/press-this.php?u={url}&t={title}&s={text}&v=2', telegram: 'https://telegram.me/share/url?url={url}' } function link(network) { var url = templates[network]; url = url.replace(/{url}/g, encodeURIComponent(options.url)); url = url.replace(/{title}/g, encodeURIComponent(options.title)); url = url.replace(/{text}/g, encodeURIComponent(options.text)); url = url.replace(/{image}/g, encodeURIComponent(options.image)); return url; } return this.each(function (i, elem) { var classlist = get_class_list(elem); for (var i = 0; i < classlist.length; i++) { var cls = classlist[i]; if (cls.substr(0, class_prefix_length) == options.class_prefix && templates[cls.substr(class_prefix_length)]) { var final_link = link(cls.substr(class_prefix_length)); $(elem).attr('href', final_link).click(function () { if ($(this).attr('href').indexOf('http://') === -1 && $(this).attr('href').indexOf('https://') === -1) { return window.open($(this).attr('href')) && false; } var screen_width = screen.width; var screen_height = screen.height; var popup_width = options.width ? options.width : (screen_width - (screen_width * 0.2)); var popup_height = options.height ? options.height : (screen_height - (screen_height * 0.2)); var left = (screen_width / 2) - (popup_width / 2); var top = (screen_height / 2) - (popup_height / 2); var parameters = 'toolbar=0,status=0,width=' + popup_width + ',height=' + popup_height + ',top=' + top + ',left=' + left; return window.open($(this).attr('href'), '', parameters) && false; }); } } }); } $.fn.ShareCounter = function (options) { var defaults = { url: window.location.href, class_prefix: 'c_', display_counter_from: 0, increment: false }; var options = $.extend({}, defaults, options); var class_prefix_length = options.class_prefix.length var social = { 'vk': vk, 'myworld': myworld, 'linkedin': linkedin, 'odnoklassniki': odnoklassniki, 'pinterest': pinterest, 'plus': plus, 'facebook': facebook } return this.each(function (i, elem) { var classlist = get_class_list(elem); for (var i = 0; i < classlist.length; i++) { var cls = classlist[i]; if (cls.substr(0, class_prefix_length) == options.class_prefix && social[cls.substr(class_prefix_length)]) { social[cls.substr(class_prefix_length)](options.url, function (count) { count = parseInt(count); if (count >= options.display_counter_from) { var current_value = parseInt($(elem).text()); if (options.increment && !isNaN(current_value)) { count += current_value; } $(elem).text(count); } }) } } }); function vk(url, callback) { if (window.VK === undefined) { VK = { CallbackList: [], Share: { count: function (idx, value) { VK.CallbackList[idx](value); } } } } var current_callback_index = VK.CallbackList.length; VK.CallbackList.push(callback); $.ajax({ type: 'GET', dataType: 'jsonp', url: 'https://vk.com/share.php', data: {'act': 'count', 'index': current_callback_index, 'url': url} }) .fail(function (data, status) { if (status != 'parsererror') { for (i in VK.CallbackList) { VK.CallbackList[i](0) } } }) } function myworld(url, callback) { var results = []; $.ajax({ type: 'GET', dataType: 'jsonp', url: 'https://connect.mail.ru/share_count', jsonp: 'func', data: {'url_list': url, 'callback': '1'} }) .done(function (data) { callback(data[url].shares) }) .fail(function (data) { callback(0) }) } function linkedin(url, callback) { $.ajax({ type: 'GET', dataType: 'jsonp', url: 'https://www.linkedin.com/countserv/count/share', data: {'url': url, 'format': 'jsonp'} }) .done(function (data) { callback(data.count) }) .fail(function () { callback(0) }) } function odnoklassniki(url, callback) { if (window.ODKL === undefined) { ODKL = { CallbackList: [], updateCount: function (uid, value) { ODKL.CallbackList[parseInt(uid)](value); } } } var current_callback_index = ODKL.CallbackList.length; ODKL.CallbackList.push(callback); $.ajax({ type: 'GET', dataType: 'jsonp', url: 'https://ok.ru/dk', data: {'st.cmd': 'extLike', 'ref': url, 'uid': current_callback_index} }) .fail(function (data, status) { if (status != 'parsererror') { for (i in ODKL.CallbackList) { ODKL.CallbackList[i](0) } } }) } function pinterest(url, callback) { $.ajax({ type: 'GET', dataType: 'jsonp', url: 'https://api.pinterest.com/v1/urls/count.json', data: {'url': url} }) .done(function (data) { callback(data.count) }) .fail(function () { callback(0) }) } function plus(url, callback) { $.ajax({ type: 'POST', url: 'https://clients6.google.com/rpc', processData: true, contentType: 'application/json', data: JSON.stringify({ 'method': 'pos.plusones.get', 'id': location.href, 'params': { 'nolog': true, 'id': url, 'source': 'widget', 'userId': '@viewer', 'groupId': '@self' }, 'jsonrpc': '2.0', 'key': 'p', 'apiVersion': 'v1' }) }) .done(function (data) { callback(data.result.metadata.globalCounts.count) }) .fail(function () { callback(0) }) } function facebook(url, callback) { $.ajax({ type: 'GET', dataType: 'jsonp', url: 'https://graph.facebook.com', data: {'id': url} }) .done(function (data) { if (data.share != undefined && data.share.share_count != undefined) { callback(data.share.share_count) } }) .fail(function () { callback(0) }) } } })(jQuery); // source --> https://www.katleen.sk/wp-content/plugins/blog-designer-pro/js/jquery.flexslider-min.js?ver=4.8.24 /* * jQuery FlexSlider v2.6.0 * Copyright 2012 WooThemes * Contributing Author: Tyler Smith */!function($){var e = !0; $.flexslider = function(t, a){var n = $(t); n.vars = $.extend({}, $.flexslider.defaults, a); var i = n.vars.namespace, s = window.navigator && window.navigator.msPointerEnabled && window.MSGesture, r = ("ontouchstart"in window || s || window.DocumentTouch && document instanceof DocumentTouch) && n.vars.touch, o = "click touchend MSPointerUp keyup", l = "", c, d = "vertical" === n.vars.direction, u = n.vars.reverse, v = n.vars.itemWidth > 0, p = "fade" === n.vars.animation, m = "" !== n.vars.asNavFor, f = {}; $.data(t, "flexslider", n), f = {init:function(){n.animating = !1, n.currentSlide = parseInt(n.vars.startAt?n.vars.startAt:0, 10), isNaN(n.currentSlide) && (n.currentSlide = 0), n.animatingTo = n.currentSlide, n.atEnd = 0 === n.currentSlide || n.currentSlide === n.last, n.containerSelector = n.vars.selector.substr(0, n.vars.selector.search(" ")), n.slides = $(n.vars.selector, n), n.container = $(n.containerSelector, n), n.count = n.slides.length, n.syncExists = $(n.vars.sync).length > 0, "slide" === n.vars.animation && (n.vars.animation = "swing"), n.prop = d?"top":"marginLeft", n.args = {}, n.manualPause = !1, n.stopped = !1, n.started = !1, n.startTimeout = null, n.transitions = !n.vars.video && !p && n.vars.useCSS && function(){var e = document.createElement("div"), t = ["perspectiveProperty", "WebkitPerspective", "MozPerspective", "OPerspective", "msPerspective"]; for (var a in t)if (void 0 !== e.style[t[a]])return n.pfx = t[a].replace("Perspective", "").toLowerCase(), n.prop = "-" + n.pfx + "-transform", !0; return!1}(), n.ensureAnimationEnd = "", "" !== n.vars.controlsContainer && (n.controlsContainer = $(n.vars.controlsContainer).length > 0 && $(n.vars.controlsContainer)), "" !== n.vars.manualControls && (n.manualControls = $(n.vars.manualControls).length > 0 && $(n.vars.manualControls)), "" !== n.vars.customDirectionNav && (n.customDirectionNav = 2 === $(n.vars.customDirectionNav).length && $(n.vars.customDirectionNav)), n.vars.randomize && (n.slides.sort(function(){return Math.round(Math.random()) - .5}), n.container.empty().append(n.slides)), n.doMath(), n.setup("init"), n.vars.controlNav && f.controlNav.setup(), n.vars.directionNav && f.directionNav.setup(), n.vars.keyboard && (1 === $(n.containerSelector).length || n.vars.multipleKeyboard) && $(document).bind("keyup", function(e){var t = e.keyCode; if (!n.animating && (39 === t || 37 === t)){var a = 39 === t?n.getTarget("next"):37 === t?n.getTarget("prev"):!1; n.flexAnimate(a, n.vars.pauseOnAction)}}), n.vars.mousewheel && n.bind("mousewheel", function(e, t, a, i){e.preventDefault(); var s = 0 > t?n.getTarget("next"):n.getTarget("prev"); n.flexAnimate(s, n.vars.pauseOnAction)}), n.vars.pausePlay && f.pausePlay.setup(), n.vars.slideshow && n.vars.pauseInvisible && f.pauseInvisible.init(), n.vars.slideshow && (n.vars.pauseOnHover && n.hover(function(){n.manualPlay || n.manualPause || n.pause()}, function(){n.manualPause || n.manualPlay || n.stopped || n.play()}), n.vars.pauseInvisible && f.pauseInvisible.isHidden() || (n.vars.initDelay > 0?n.startTimeout = setTimeout(n.play, n.vars.initDelay):n.play())), m && f.asNav.setup(), r && n.vars.touch && f.touch(), (!p || p && n.vars.smoothHeight) && $(window).bind("resize orientationchange focus", f.resize), n.find("img").attr("draggable", "false"), setTimeout(function(){n.vars.start(n)}, 200)}, asNav:{setup:function(){n.asNav = !0, n.animatingTo = Math.floor(n.currentSlide / n.move), n.currentItem = n.currentSlide, n.slides.removeClass(i + "active-slide").eq(n.currentItem).addClass(i + "active-slide"), s?(t._slider = n, n.slides.each(function(){var e = this; e._gesture = new MSGesture, e._gesture.target = e, e.addEventListener("MSPointerDown", function(e){e.preventDefault(), e.currentTarget._gesture && e.currentTarget._gesture.addPointer(e.pointerId)}, !1), e.addEventListener("MSGestureTap", function(e){e.preventDefault(); var t = $(this), a = t.index(); $(n.vars.asNavFor).data("flexslider").animating || t.hasClass("active") || (n.direction = n.currentItem < a?"next":"prev", n.flexAnimate(a, n.vars.pauseOnAction, !1, !0, !0))})})):n.slides.on(o, function(e){e.preventDefault(); var t = $(this), a = t.index(), s = t.offset().left - $(n).scrollLeft(); 0 >= s && t.hasClass(i + "active-slide")?n.flexAnimate(n.getTarget("prev"), !0):$(n.vars.asNavFor).data("flexslider").animating || t.hasClass(i + "active-slide") || (n.direction = n.currentItem < a?"next":"prev", n.flexAnimate(a, n.vars.pauseOnAction, !1, !0, !0))})}}, controlNav:{setup:function(){n.manualControls?f.controlNav.setupManual():f.controlNav.setupPaging()}, setupPaging:function(){var e = "thumbnails" === n.vars.controlNav?"control-thumbs":"control-paging", t = 1, a, s; if (n.controlNavScaffold = $('
    '), n.pagingCount > 1)for (var r = 0; r < n.pagingCount; r++){if (s = n.slides.eq(r), void 0 === s.attr("data-thumb-alt") && s.attr("data-thumb-alt", ""), altText = "" !== s.attr("data-thumb-alt")?altText = ' alt="' + s.attr("data-thumb-alt") + '"':"", a = "thumbnails" === n.vars.controlNav?'":'' + t + "", "thumbnails" === n.vars.controlNav && !0 === n.vars.thumbCaptions){var c = s.attr("data-thumbcaption"); "" !== c && void 0 !== c && (a += '' + c + "")}n.controlNavScaffold.append("
  1. " + a + "
  2. "), t++}n.controlsContainer?$(n.controlsContainer).append(n.controlNavScaffold):n.append(n.controlNavScaffold), f.controlNav.set(), f.controlNav.active(), n.controlNavScaffold.delegate("a, img", o, function(e){if (e.preventDefault(), "" === l || l === e.type){var t = $(this), a = n.controlNav.index(t); t.hasClass(i + "active") || (n.direction = a > n.currentSlide?"next":"prev", n.flexAnimate(a, n.vars.pauseOnAction))}"" === l && (l = e.type), f.setToClearWatchedEvent()})}, setupManual:function(){n.controlNav = n.manualControls, f.controlNav.active(), n.controlNav.bind(o, function(e){if (e.preventDefault(), "" === l || l === e.type){var t = $(this), a = n.controlNav.index(t); t.hasClass(i + "active") || (a > n.currentSlide?n.direction = "next":n.direction = "prev", n.flexAnimate(a, n.vars.pauseOnAction))}"" === l && (l = e.type), f.setToClearWatchedEvent()})}, set:function(){var e = "thumbnails" === n.vars.controlNav?"img":"a"; n.controlNav = $("." + i + "control-nav li " + e, n.controlsContainer?n.controlsContainer:n)}, active:function(){n.controlNav.removeClass(i + "active").eq(n.animatingTo).addClass(i + "active")}, update:function(e, t){n.pagingCount > 1 && "add" === e?n.controlNavScaffold.append($('
  3. ' + n.count + "
  4. ")):1 === n.pagingCount?n.controlNavScaffold.find("li").remove():n.controlNav.eq(t).closest("li").remove(), f.controlNav.set(), n.pagingCount > 1 && n.pagingCount !== n.controlNav.length?n.update(t, e):f.controlNav.active()}}, directionNav:{setup:function(){var e = $('"); n.customDirectionNav?n.directionNav = n.customDirectionNav:n.controlsContainer?($(n.controlsContainer).append(e), n.directionNav = $("." + i + "direction-nav li a", n.controlsContainer)):(n.append(e), n.directionNav = $("." + i + "direction-nav li a", n)), f.directionNav.update(), n.directionNav.bind(o, function(e){e.preventDefault(); var t; ("" === l || l === e.type) && (t = $(this).hasClass(i + "next")?n.getTarget("next"):n.getTarget("prev"), n.flexAnimate(t, n.vars.pauseOnAction)), "" === l && (l = e.type), f.setToClearWatchedEvent()})}, update:function(){var e = i + "disabled"; 1 === n.pagingCount?n.directionNav.addClass(e).attr("tabindex", "-1"):n.vars.animationLoop?n.directionNav.removeClass(e).removeAttr("tabindex"):0 === n.animatingTo?n.directionNav.removeClass(e).filter("." + i + "prev").addClass(e).attr("tabindex", "-1"):n.animatingTo === n.last?n.directionNav.removeClass(e).filter("." + i + "next").addClass(e).attr("tabindex", "-1"):n.directionNav.removeClass(e).removeAttr("tabindex")}}, pausePlay:{setup:function(){var e = $('
    '); n.controlsContainer?(n.controlsContainer.append(e), n.pausePlay = $("." + i + "pauseplay a", n.controlsContainer)):(n.append(e), n.pausePlay = $("." + i + "pauseplay a", n)), f.pausePlay.update(n.vars.slideshow?i + "pause":i + "play"), n.pausePlay.bind(o, function(e){e.preventDefault(), ("" === l || l === e.type) && ($(this).hasClass(i + "pause")?(n.manualPause = !0, n.manualPlay = !1, n.pause()):(n.manualPause = !1, n.manualPlay = !0, n.play())), "" === l && (l = e.type), f.setToClearWatchedEvent()})}, update:function(e){"play" === e?n.pausePlay.removeClass(i + "pause").addClass(i + "play").html(n.vars.playText):n.pausePlay.removeClass(i + "play").addClass(i + "pause").html(n.vars.pauseText)}}, touch:function(){function e(e){e.stopPropagation(), n.animating?e.preventDefault():(n.pause(), t._gesture.addPointer(e.pointerId), T = 0, c = d?n.h:n.w, f = Number(new Date), l = v && u && n.animatingTo === n.last?0:v && u?n.limit - (n.itemW + n.vars.itemMargin) * n.move * n.animatingTo:v && n.currentSlide === n.last?n.limit:v?(n.itemW + n.vars.itemMargin) * n.move * n.currentSlide:u?(n.last - n.currentSlide + n.cloneOffset) * c:(n.currentSlide + n.cloneOffset) * c)}function a(e){e.stopPropagation(); var a = e.target._slider; if (a){var n = - e.translationX, i = - e.translationY; return T += d?i:n, m = T, x = d?Math.abs(T) < Math.abs( - n):Math.abs(T) < Math.abs( - i), e.detail === e.MSGESTURE_FLAG_INERTIA?void setImmediate(function(){t._gesture.stop()}):void((!x || Number(new Date) - f > 500) && (e.preventDefault(), !p && a.transitions && (a.vars.animationLoop || (m = T / (0 === a.currentSlide && 0 > T || a.currentSlide === a.last && T > 0?Math.abs(T) / c + 2:1)), a.setProps(l + m, "setTouch"))))}}function i(e){e.stopPropagation(); var t = e.target._slider; if (t){if (t.animatingTo === t.currentSlide && !x && null !== m){var a = u? - m:m, n = a > 0?t.getTarget("next"):t.getTarget("prev"); t.canAdvance(n) && (Number(new Date) - f < 550 && Math.abs(a) > 50 || Math.abs(a) > c / 2)?t.flexAnimate(n, t.vars.pauseOnAction):p || t.flexAnimate(t.currentSlide, t.vars.pauseOnAction, !0)}r = null, o = null, m = null, l = null, T = 0}}var r, o, l, c, m, f, g, h, S, x = !1, y = 0, b = 0, T = 0; s?(t.style.msTouchAction = "none", t._gesture = new MSGesture, t._gesture.target = t, t.addEventListener("MSPointerDown", e, !1), t._slider = n, t.addEventListener("MSGestureChange", a, !1), t.addEventListener("MSGestureEnd", i, !1)):(g = function(e){n.animating?e.preventDefault():(window.navigator.msPointerEnabled || 1 === e.touches.length) && (n.pause(), c = d?n.h:n.w, f = Number(new Date), y = e.touches[0].pageX, b = e.touches[0].pageY, l = v && u && n.animatingTo === n.last?0:v && u?n.limit - (n.itemW + n.vars.itemMargin) * n.move * n.animatingTo:v && n.currentSlide === n.last?n.limit:v?(n.itemW + n.vars.itemMargin) * n.move * n.currentSlide:u?(n.last - n.currentSlide + n.cloneOffset) * c:(n.currentSlide + n.cloneOffset) * c, r = d?b:y, o = d?y:b, t.addEventListener("touchmove", h, !1), t.addEventListener("touchend", S, !1))}, h = function(e){y = e.touches[0].pageX, b = e.touches[0].pageY, m = d?r - b:r - y, x = d?Math.abs(m) < Math.abs(y - o):Math.abs(m) < Math.abs(b - o); var t = 500; (!x || Number(new Date) - f > t) && (e.preventDefault(), !p && n.transitions && (n.vars.animationLoop || (m /= 0 === n.currentSlide && 0 > m || n.currentSlide === n.last && m > 0?Math.abs(m) / c + 2:1), n.setProps(l + m, "setTouch")))}, S = function(e){if (t.removeEventListener("touchmove", h, !1), n.animatingTo === n.currentSlide && !x && null !== m){var a = u? - m:m, i = a > 0?n.getTarget("next"):n.getTarget("prev"); n.canAdvance(i) && (Number(new Date) - f < 550 && Math.abs(a) > 50 || Math.abs(a) > c / 2)?n.flexAnimate(i, n.vars.pauseOnAction):p || n.flexAnimate(n.currentSlide, n.vars.pauseOnAction, !0)}t.removeEventListener("touchend", S, !1), r = null, o = null, m = null, l = null}, t.addEventListener("touchstart", g, !1))}, resize:function(){!n.animating && n.is(":visible") && (v || n.doMath(), p?f.smoothHeight():v?(n.slides.width(n.computedW), n.update(n.pagingCount), n.setProps()):d?(n.viewport.height(n.h), n.setProps(n.h, "setTotal")):(n.vars.smoothHeight && f.smoothHeight(), n.newSlides.width(n.computedW), n.setProps(n.computedW, "setTotal")))}, smoothHeight:function(e){if (!d || p){var t = p?n:n.viewport; e?t.animate({height:n.slides.eq(n.animatingTo).height()}, e):t.height(n.slides.eq(n.animatingTo).height())}}, sync:function(e){var t = $(n.vars.sync).data("flexslider"), a = n.animatingTo; switch (e){case"animate":t.flexAnimate(a, n.vars.pauseOnAction, !1, !0); break; case"play":t.playing || t.asNav || t.play(); break; case"pause":t.pause()}}, uniqueID:function(e){return e.filter("[id]").add(e.find("[id]")).each(function(){var e = $(this); e.attr("id", e.attr("id") + "_clone")}), e}, pauseInvisible:{visProp:null, init:function(){var e = f.pauseInvisible.getHiddenProp(); if (e){var t = e.replace(/[H|h]idden/, "") + "visibilitychange"; document.addEventListener(t, function(){f.pauseInvisible.isHidden()?n.startTimeout?clearTimeout(n.startTimeout):n.pause():n.started?n.play():n.vars.initDelay > 0?setTimeout(n.play, n.vars.initDelay):n.play()})}}, isHidden:function(){var e = f.pauseInvisible.getHiddenProp(); return e?document[e]:!1}, getHiddenProp:function(){var e = ["webkit", "moz", "ms", "o"]; if ("hidden"in document)return"hidden"; for (var t = 0; t < e.length; t++)if (e[t] + "Hidden"in document)return e[t] + "Hidden"; return null}}, setToClearWatchedEvent:function(){clearTimeout(c), c = setTimeout(function(){l = ""}, 3e3)}}, n.flexAnimate = function(e, t, a, s, o){if (n.vars.animationLoop || e === n.currentSlide || (n.direction = e > n.currentSlide?"next":"prev"), m && 1 === n.pagingCount && (n.direction = n.currentItem < e?"next":"prev"), !n.animating && (n.canAdvance(e, o) || a) && n.is(":visible")){if (m && s){var l = $(n.vars.asNavFor).data("flexslider"); if (n.atEnd = 0 === e || e === n.count - 1, l.flexAnimate(e, !0, !1, !0, o), n.direction = n.currentItem < e?"next":"prev", l.direction = n.direction, Math.ceil((e + 1) / n.visible) - 1 === n.currentSlide || 0 === e)return n.currentItem = e, n.slides.removeClass(i + "active-slide").eq(e).addClass(i + "active-slide"), !1; n.currentItem = e, n.slides.removeClass(i + "active-slide").eq(e).addClass(i + "active-slide"), e = Math.floor(e / n.visible)}if (n.animating = !0, n.animatingTo = e, t && n.pause(), n.vars.before(n), n.syncExists && !o && f.sync("animate"), n.vars.controlNav && f.controlNav.active(), v || n.slides.removeClass(i + "active-slide").eq(e).addClass(i + "active-slide"), n.atEnd = 0 === e || e === n.last, n.vars.directionNav && f.directionNav.update(), e === n.last && (n.vars.end(n), n.vars.animationLoop || n.pause()), p)r?(n.slides.eq(n.currentSlide).css({opacity:0, zIndex:1}), n.slides.eq(e).css({opacity:1, zIndex:2}), n.wrapup(c)):(n.slides.eq(n.currentSlide).css({zIndex:1}).animate({opacity:0}, n.vars.animationSpeed, n.vars.easing), n.slides.eq(e).css({zIndex:2}).animate({opacity:1}, n.vars.animationSpeed, n.vars.easing, n.wrapup)); else{var c = d?n.slides.filter(":first").height():n.computedW, g, h, S; v?(g = n.vars.itemMargin, S = (n.itemW + g) * n.move * n.animatingTo, h = S > n.limit && 1 !== n.visible?n.limit:S):h = 0 === n.currentSlide && e === n.count - 1 && n.vars.animationLoop && "next" !== n.direction?u?(n.count + n.cloneOffset) * c:0:n.currentSlide === n.last && 0 === e && n.vars.animationLoop && "prev" !== n.direction?u?0:(n.count + 1) * c:u?(n.count - 1 - e + n.cloneOffset) * c:(e + n.cloneOffset) * c, n.setProps(h, "", n.vars.animationSpeed), n.transitions?(n.vars.animationLoop && n.atEnd || (n.animating = !1, n.currentSlide = n.animatingTo), n.container.unbind("webkitTransitionEnd transitionend"), n.container.bind("webkitTransitionEnd transitionend", function(){clearTimeout(n.ensureAnimationEnd), n.wrapup(c)}), clearTimeout(n.ensureAnimationEnd), n.ensureAnimationEnd = setTimeout(function(){n.wrapup(c)}, n.vars.animationSpeed + 100)):n.container.animate(n.args, n.vars.animationSpeed, n.vars.easing, function(){n.wrapup(c)})}n.vars.smoothHeight && f.smoothHeight(n.vars.animationSpeed)}}, n.wrapup = function(e){p || v || (0 === n.currentSlide && n.animatingTo === n.last && n.vars.animationLoop?n.setProps(e, "jumpEnd"):n.currentSlide === n.last && 0 === n.animatingTo && n.vars.animationLoop && n.setProps(e, "jumpStart")), n.animating = !1, n.currentSlide = n.animatingTo, n.vars.after(n)}, n.animateSlides = function(){!n.animating && e && n.flexAnimate(n.getTarget("next"))}, n.pause = function(){clearInterval(n.animatedSlides), n.animatedSlides = null, n.playing = !1, n.vars.pausePlay && f.pausePlay.update("play"), n.syncExists && f.sync("pause")}, n.play = function(){n.playing && clearInterval(n.animatedSlides), n.animatedSlides = n.animatedSlides || setInterval(n.animateSlides, n.vars.slideshowSpeed), n.started = n.playing = !0, n.vars.pausePlay && f.pausePlay.update("pause"), n.syncExists && f.sync("play")}, n.stop = function(){n.pause(), n.stopped = !0}, n.canAdvance = function(e, t){var a = m?n.pagingCount - 1:n.last; return t?!0:m && n.currentItem === n.count - 1 && 0 === e && "prev" === n.direction?!0:m && 0 === n.currentItem && e === n.pagingCount - 1 && "next" !== n.direction?!1:e !== n.currentSlide || m?n.vars.animationLoop?!0:n.atEnd && 0 === n.currentSlide && e === a && "next" !== n.direction?!1:n.atEnd && n.currentSlide === a && 0 === e && "next" === n.direction?!1:!0:!1}, n.getTarget = function(e){return n.direction = e, "next" === e?n.currentSlide === n.last?0:n.currentSlide + 1:0 === n.currentSlide?n.last:n.currentSlide - 1}, n.setProps = function(e, t, a){var i = function(){var a = e?e:(n.itemW + n.vars.itemMargin) * n.move * n.animatingTo, i = function(){if (v)return"setTouch" === t?e:u && n.animatingTo === n.last?0:u?n.limit - (n.itemW + n.vars.itemMargin) * n.move * n.animatingTo:n.animatingTo === n.last?n.limit:a; switch (t){case"setTotal":return u?(n.count - 1 - n.currentSlide + n.cloneOffset) * e:(n.currentSlide + n.cloneOffset) * e; case"setTouch":return u?e:e; case"jumpEnd":return u?e:n.count * e; case"jumpStart":return u?n.count * e:e; default:return e}}(); return - 1 * i + "px"}(); n.transitions && (i = d?"translate3d(0," + i + ",0)":"translate3d(" + i + ",0,0)", a = void 0 !== a?a / 1e3 + "s":"0s", n.container.css("-" + n.pfx + "-transition-duration", a), n.container.css("transition-duration", a)), n.args[n.prop] = i, (n.transitions || void 0 === a) && n.container.css(n.args), n.container.css("transform", i)}, n.setup = function(e){if (p)n.slides.css({width:"100%", "float":"left", marginRight:"-100%", position:"relative"}), "init" === e && (r?n.slides.css({opacity:0, display:"block", webkitTransition:"opacity " + n.vars.animationSpeed / 1e3 + "s ease", zIndex:1}).eq(n.currentSlide).css({opacity:1, zIndex:2}):0 == n.vars.fadeFirstSlide?n.slides.css({opacity:0, display:"block", zIndex:1}).eq(n.currentSlide).css({zIndex:2}).css({opacity:1}):n.slides.css({opacity:0, display:"block", zIndex:1}).eq(n.currentSlide).css({zIndex:2}).animate({opacity:1}, n.vars.animationSpeed, n.vars.easing)), n.vars.smoothHeight && f.smoothHeight(); else{var t, a; "init" === e && (n.viewport = $('
    ').css({overflow:"hidden", position:"relative"}).appendTo(n).append(n.container), n.cloneCount = 0, n.cloneOffset = 0, u && (a = $.makeArray(n.slides).reverse(), n.slides = $(a), n.container.empty().append(n.slides))), n.vars.animationLoop && !v && (n.cloneCount = 2, n.cloneOffset = 1, "init" !== e && n.container.find(".clone").remove(), n.container.append(f.uniqueID(n.slides.first().clone().addClass("clone")).attr("aria-hidden", "true")).prepend(f.uniqueID(n.slides.last().clone().addClass("clone")).attr("aria-hidden", "true"))), n.newSlides = $(n.vars.selector, n), t = u?n.count - 1 - n.currentSlide + n.cloneOffset:n.currentSlide + n.cloneOffset, d && !v?(n.container.height(200 * (n.count + n.cloneCount) + "%").css("position", "absolute").width("100%"), setTimeout(function(){n.newSlides.css({display:"block"}), n.doMath(), n.viewport.height(n.h), n.setProps(t * n.h, "init")}, "init" === e?100:0)):(n.container.width(200 * (n.count + n.cloneCount) + "%"), n.setProps(t * n.computedW, "init"), setTimeout(function(){n.doMath(), n.newSlides.css({width:n.computedW, marginRight:n.computedM, "float":"left", display:"block"}), n.vars.smoothHeight && f.smoothHeight()}, "init" === e?100:0))}v || n.slides.removeClass(i + "active-slide").eq(n.currentSlide).addClass(i + "active-slide"), n.vars.init(n)}, n.doMath = function(){var e = n.slides.first(), t = n.vars.itemMargin, a = n.vars.minItems, i = n.vars.maxItems; n.w = void 0 === n.viewport?n.width():n.viewport.width(), n.h = e.height(), n.boxPadding = e.outerWidth() - e.width(), v?(n.itemT = n.vars.itemWidth + t, n.itemM = t, n.minW = a?a * n.itemT:n.w, n.maxW = i?i * n.itemT - t:n.w, n.itemW = n.minW > n.w?(n.w - t * (a - 1)) / a:n.maxW < n.w?(n.w - t * (i - 1)) / i:n.vars.itemWidth > n.w?n.w:n.vars.itemWidth, n.visible = Math.floor(n.w / n.itemW), n.move = n.vars.move > 0 && n.vars.move < n.visible?n.vars.move:n.visible, n.pagingCount = Math.ceil((n.count - n.visible) / n.move + 1), n.last = n.pagingCount - 1, n.limit = 1 === n.pagingCount?0:n.vars.itemWidth > n.w?n.itemW * (n.count - 1) + t * (n.count - 1):(n.itemW + t) * n.count - n.w - t):(n.itemW = n.w, n.itemM = t, n.pagingCount = n.count, n.last = n.count - 1), n.computedW = n.itemW - n.boxPadding, n.computedM = n.itemM}, n.update = function(e, t){n.doMath(), v || (e < n.currentSlide?n.currentSlide += 1:e <= n.currentSlide && 0 !== e && (n.currentSlide -= 1), n.animatingTo = n.currentSlide), n.vars.controlNav && !n.manualControls && ("add" === t && !v || n.pagingCount > n.controlNav.length?f.controlNav.update("add"):("remove" === t && !v || n.pagingCount < n.controlNav.length) && (v && n.currentSlide > n.last && (n.currentSlide -= 1, n.animatingTo -= 1), f.controlNav.update("remove", n.last))), n.vars.directionNav && f.directionNav.update()}, n.addSlide = function(e, t){var a = $(e); n.count += 1, n.last = n.count - 1, d && u?void 0 !== t?n.slides.eq(n.count - t).after(a):n.container.prepend(a):void 0 !== t?n.slides.eq(t).before(a):n.container.append(a), n.update(t, "add"), n.slides = $(n.vars.selector + ":not(.clone)", n), n.setup(), n.vars.added(n)}, n.removeSlide = function(e){var t = isNaN(e)?n.slides.index($(e)):e; n.count -= 1, n.last = n.count - 1, isNaN(e)?$(e, n.slides).remove():d && u?n.slides.eq(n.last).remove():n.slides.eq(e).remove(), n.doMath(), n.update(t, "remove"), n.slides = $(n.vars.selector + ":not(.clone)", n), n.setup(), n.vars.removed(n)}, f.init()}, $(window).blur(function(t){e = !1}).focus(function(t){e = !0}), $.flexslider.defaults = {namespace:"flex-", selector:".slides > li", animation:"fade", easing:"swing", direction:"horizontal", reverse:!1, animationLoop:!0, smoothHeight:!1, startAt:0, slideshow:!0, slideshowSpeed:7e3, animationSpeed:600, initDelay:0, randomize:!1, fadeFirstSlide:!0, thumbCaptions:!1, pauseOnAction:!0, pauseOnHover:!1, pauseInvisible:!0, useCSS:!0, touch:!0, video:!1, controlNav:!0, directionNav:!0, prevText:"Previous", nextText:"Next", keyboard:!0, multipleKeyboard:!1, mousewheel:!1, pausePlay:!1, pauseText:"Pause", playText:"Play", controlsContainer:"", manualControls:"", customDirectionNav:"", sync:"", asNavFor:"", itemWidth:0, itemMargin:0, minItems:1, maxItems:0, move:0, allowOneSlide:!0, start:function(){}, before:function(){}, after:function(){}, end:function(){}, added:function(){}, removed:function(){}, init:function(){}}, $.fn.flexslider = function(e){if (void 0 === e && (e = {}), "object" == typeof e)return this.each(function(){var t = $(this), a = e.selector?e.selector:".slides > li", n = t.find(a); 1 === n.length && e.allowOneSlide === !0 || 0 === n.length?(n.fadeIn(400), e.start && e.start(t)):void 0 === t.data("flexslider") && new $.flexslider(this, e)}); var t = $(this).data("flexslider"); switch (e){case"play":t.play(); break; case"pause":t.pause(); break; case"stop":t.stop(); break; case"next":t.flexAnimate(t.getTarget("next"), !0); break; case"prev":case"previous":t.flexAnimate(t.getTarget("prev"), !0); break; default:"number" == typeof e && t.flexAnimate(e, !0)}}}(jQuery); // source --> https://www.katleen.sk/wp-content/plugins/responsive-lightbox/assets/swipebox/js/jquery.swipebox.min.js?ver=2.0.5 /*! Swipebox v1.4.4 | Constantin Saguin csag.co | MIT License | github.com/brutaldesign/swipebox */ !function(a,b,c,d){c.swipebox=function(e,f){var g,h,i={useCSS:!0,useSVG:!0,initialIndexOnArray:0,removeBarsOnMobile:!0,hideCloseButtonOnMobile:!1,hideBarsDelay:3e3,videoMaxWidth:1140,vimeoColor:"cccccc",beforeOpen:null,afterOpen:null,afterClose:null,afterMedia:null,nextSlide:null,prevSlide:null,loopAtEnd:!1,autoplayVideos:!1,queryStringData:{},toggleClassOnLoad:""},j=this,k=[],l=e.selector,m=navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i),n=null!==m||b.createTouch!==d||"ontouchstart"in a||"onmsgesturechange"in a||navigator.msMaxTouchPoints,o=!!b.createElementNS&&!!b.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,p=a.innerWidth?a.innerWidth:c(a).width(),q=a.innerHeight?a.innerHeight:c(a).height(),r=0,s='
    ';j.settings={},c.swipebox.close=function(){g.closeSlide()},c.swipebox.extend=function(){return g},j.init=function(){j.settings=c.extend({},i,f),c.isArray(e)?(k=e,g.target=c(a),g.init(j.settings.initialIndexOnArray)):c(b).on("click",l,function(a){if("slide current"===a.target.parentNode.className)return!1;c.isArray(e)||(g.destroy(),h=c(l),g.actions()),k=[];var b,d,f;f||(d="data-rel",f=c(this).attr(d)),f||(d="rel",f=c(this).attr(d)),h=f&&""!==f&&"nofollow"!==f?c(l).filter("["+d+'="'+f+'"]'):c(l),h.each(function(){var a=null,b=null;c(this).attr("title")&&(a=c(this).attr("title")),c(this).attr("href")&&(b=c(this).attr("href")),k.push({href:b,title:a})}),b=h.index(c(this)),a.preventDefault(),a.stopPropagation(),g.target=c(a.target),g.init(b)})},g={init:function(a){j.settings.beforeOpen&&j.settings.beforeOpen(),this.target.trigger("swipebox-start"),c.swipebox.isOpen=!0,this.build(),this.openSlide(a),this.openMedia(a),this.preloadMedia(a+1),this.preloadMedia(a-1),j.settings.afterOpen&&j.settings.afterOpen(a)},build:function(){var a,b=this;c("body").append(s),o&&j.settings.useSVG===!0&&(a=c("#swipebox-close").css("background-image"),a=a.replace("png","svg"),c("#swipebox-prev, #swipebox-next, #swipebox-close").css({"background-image":a})),m&&j.settings.removeBarsOnMobile&&c("#swipebox-bottom-bar, #swipebox-top-bar").remove(),c.each(k,function(){c("#swipebox-slider").append('
    ')}),b.setDim(),b.actions(),n&&b.gesture(),b.keyboard(),b.animBars(),b.resize()},setDim:function(){var b,d,e={};"onorientationchange"in a?a.addEventListener("orientationchange",function(){0===a.orientation?(b=p,d=q):(90===a.orientation||-90===a.orientation)&&(b=q,d=p)},!1):(b=a.innerWidth?a.innerWidth:c(a).width(),d=a.innerHeight?a.innerHeight:c(a).height()),e={width:b,height:d},c("#swipebox-overlay").css(e)},resize:function(){var b=this;c(a).resize(function(){b.setDim()}).resize()},supportTransition:function(){var a,c="transition WebkitTransition MozTransition OTransition msTransition KhtmlTransition".split(" ");for(a=0;a=m||i)){var q=.75-Math.abs(d)/s.height();s.css({top:d+"px"}),s.css({opacity:q}),i=!0}e=b,b=o.pageX-n.pageX,g=100*b/p,!j&&!i&&Math.abs(b)>=l&&(c("#swipebox-slider").css({"-webkit-transition":"",transition:""}),j=!0),j&&(b>0?0===a?c("#swipebox-overlay").addClass("leftSpringTouch"):(c("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),c("#swipebox-slider").css({"-webkit-transform":"translate3d("+(r+g)+"%, 0, 0)",transform:"translate3d("+(r+g)+"%, 0, 0)"})):0>b&&(k.length===a+1?c("#swipebox-overlay").addClass("rightSpringTouch"):(c("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),c("#swipebox-slider").css({"-webkit-transform":"translate3d("+(r+g)+"%, 0, 0)",transform:"translate3d("+(r+g)+"%, 0, 0)"}))))}),!1}).bind("touchend",function(a){if(a.preventDefault(),a.stopPropagation(),c("#swipebox-slider").css({"-webkit-transition":"-webkit-transform 0.4s ease",transition:"transform 0.4s ease"}),d=o.pageY-n.pageY,b=o.pageX-n.pageX,g=100*b/p,i)if(i=!1,Math.abs(d)>=2*m&&Math.abs(d)>Math.abs(f)){var k=d>0?s.height():-s.height();s.animate({top:k+"px",opacity:0},300,function(){h.closeSlide()})}else s.animate({top:0,opacity:1},300);else j?(j=!1,b>=l&&b>=e?h.getPrev():-l>=b&&e>=b&&h.getNext()):q.hasClass("visible-bars")?(h.clearTimeout(),h.hideBars()):(h.showBars(),h.setTimeout());c("#swipebox-slider").css({"-webkit-transform":"translate3d("+r+"%, 0, 0)",transform:"translate3d("+r+"%, 0, 0)"}),c("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),c(".touching").off("touchmove").removeClass("touching")})},setTimeout:function(){if(j.settings.hideBarsDelay>0){var b=this;b.clearTimeout(),b.timeout=a.setTimeout(function(){b.hideBars()},j.settings.hideBarsDelay)}},clearTimeout:function(){a.clearTimeout(this.timeout),this.timeout=null},showBars:function(){var a=c("#swipebox-top-bar, #swipebox-bottom-bar");this.doCssTrans()?a.addClass("visible-bars"):(c("#swipebox-top-bar").animate({top:0},500),c("#swipebox-bottom-bar").animate({bottom:0},500),setTimeout(function(){a.addClass("visible-bars")},1e3))},hideBars:function(){var a=c("#swipebox-top-bar, #swipebox-bottom-bar");this.doCssTrans()?a.removeClass("visible-bars"):(c("#swipebox-top-bar").animate({top:"-50px"},500),c("#swipebox-bottom-bar").animate({bottom:"-50px"},500),setTimeout(function(){a.removeClass("visible-bars")},1e3))},animBars:function(){var a=this,b=c("#swipebox-top-bar, #swipebox-bottom-bar");b.addClass("visible-bars"),a.setTimeout(),c("#swipebox-slider").click(function(){b.hasClass("visible-bars")||(a.showBars(),a.setTimeout())}),c("#swipebox-bottom-bar").hover(function(){a.showBars(),b.addClass("visible-bars"),a.clearTimeout()},function(){j.settings.hideBarsDelay>0&&(b.removeClass("visible-bars"),a.setTimeout())})},keyboard:function(){var b=this;c(a).bind("keyup",function(a){a.preventDefault(),a.stopPropagation(),37===a.keyCode?b.getPrev():39===a.keyCode?b.getNext():27===a.keyCode&&b.closeSlide()})},actions:function(){var a=this,b="touchend click";k.length<2?(c("#swipebox-bottom-bar").hide(),d===k[1]&&c("#swipebox-top-bar").hide()):(c("#swipebox-prev").bind(b,function(b){b.preventDefault(),b.stopPropagation(),a.getPrev(),a.setTimeout()}),c("#swipebox-next").bind(b,function(b){b.preventDefault(),b.stopPropagation(),a.getNext(),a.setTimeout()})),c("#swipebox-close").bind(b,function(){a.closeSlide()})},setSlide:function(a,b){b=b||!1;var d=c("#swipebox-slider");r=100*-a,this.doCssTrans()?d.css({"-webkit-transform":"translate3d("+100*-a+"%, 0, 0)",transform:"translate3d("+100*-a+"%, 0, 0)"}):d.animate({left:100*-a+"%"}),c("#swipebox-slider .slide").removeClass("current"),c("#swipebox-slider .slide").eq(a).addClass("current"),this.setTitle(a),b&&d.fadeIn(),c("#swipebox-prev, #swipebox-next").removeClass("disabled"),0===a?c("#swipebox-prev").addClass("disabled"):a===k.length-1&&j.settings.loopAtEnd!==!0&&c("#swipebox-next").addClass("disabled")},openSlide:function(b){c("html").addClass("swipebox-html"),n?(c("html").addClass("swipebox-touch"),j.settings.hideCloseButtonOnMobile&&c("html").addClass("swipebox-no-close-button")):c("html").addClass("swipebox-no-touch"),c(a).trigger("resize"),this.setSlide(b,!0)},preloadMedia:function(a){var b=this,c=null;k[a]!==d&&(c=k[a].href),b.isVideo(c)?b.openMedia(a):setTimeout(function(){b.openMedia(a)},1e3)},openMedia:function(a){var b,e,f=this;return k[a]!==d&&(b=k[a].href),0>a||a>=k.length?!1:(e=c("#swipebox-slider .slide").eq(a),void(f.isVideo(b)?(e.html(f.getVideo(b)),j.settings.afterMedia&&j.settings.afterMedia(a)):(e.addClass("slide-loading"),f.loadMedia(b,function(){e.removeClass("slide-loading"),e.html(this),j.settings.afterMedia&&j.settings.afterMedia(a)}))))},setTitle:function(a){var b=null;c("#swipebox-title").empty(),k[a]!==d&&(b=k[a].title),b?(c("#swipebox-top-bar").show(),c("#swipebox-title").append(b)):c("#swipebox-top-bar").hide()},isVideo:function(a){if(a){if(a.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||a.match(/vimeo\.com\/([0-9]*)/)||a.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/))return!0;if(a.toLowerCase().indexOf("swipeboxvideo=1")>=0)return!0}},parseUri:function(a,d){var e=b.createElement("a"),f={};return e.href=decodeURIComponent(a),e.search&&(f=JSON.parse('{"'+e.search.toLowerCase().replace("?","").replace(/&/g,'","').replace(/=/g,'":"')+'"}')),c.isPlainObject(d)&&(f=c.extend(f,d,j.settings.queryStringData)),c.map(f,function(a,b){return a&&a>""?encodeURIComponent(b)+"="+encodeURIComponent(a):void 0}).join("&")},getVideo:function(a){var b="",c=a.match(/((?:www\.)?youtube\.com|(?:www\.)?youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/),d=a.match(/(?:www\.)?youtu\.be\/([a-zA-Z0-9\-_]+)/),e=a.match(/(?:www\.)?vimeo\.com\/([0-9]*)/),f="";return c||d?(d&&(c=d),f=g.parseUri(a,{autoplay:j.settings.autoplayVideos?"1":"0",v:""}),b=''):e?(f=g.parseUri(a,{autoplay:j.settings.autoplayVideos?"1":"0",byline:"0",portrait:"0",color:j.settings.vimeoColor}),b=''):b='','
    '+b+"
    "},loadMedia:function(a,b){if(0===a.trim().indexOf("#"))b.call(c("
    ",{"class":"swipebox-inline-container"}).append(c(a).clone().toggleClass(j.settings.toggleClassOnLoad)));else if(!this.isVideo(a)){var d=c("").on("load",function(){b.call(d)});d.attr("src",a)}},getNext:function(){var a,b=this,d=c("#swipebox-slider .slide").index(c("#swipebox-slider .slide.current"));d+10?(a=c("#swipebox-slider .slide").eq(b).contents().find("iframe").attr("src"),c("#swipebox-slider .slide").eq(b).contents().find("iframe").attr("src",a),b--,this.setSlide(b),this.preloadMedia(b-1),j.settings.prevSlide&&j.settings.prevSlide(b)):(c("#swipebox-overlay").addClass("leftSpring"),setTimeout(function(){c("#swipebox-overlay").removeClass("leftSpring")},500))},nextSlide:function(a){},prevSlide:function(a){},closeSlide:function(){c("html").removeClass("swipebox-html"),c("html").removeClass("swipebox-touch"),c(a).trigger("resize"),this.destroy()},destroy:function(){c(a).unbind("keyup"),c("body").unbind("touchstart"),c("body").unbind("touchmove"),c("body").unbind("touchend"),c("#swipebox-slider").unbind(),c("#swipebox-overlay").remove(),c.isArray(e)||e.removeData("_swipebox"),this.target&&this.target.trigger("swipebox-destroy"),c.swipebox.isOpen=!1,j.settings.afterClose&&j.settings.afterClose()}},j.init()},c.fn.swipebox=function(a){if(!c.data(this,"_swipebox")){var b=new c.swipebox(this,a);this.data("_swipebox",b)}return this.data("_swipebox")}}(window,document,jQuery); // source --> https://www.katleen.sk/wp-content/plugins/responsive-lightbox/assets/infinitescroll/infinite-scroll.pkgd.min.js?ver=4.8.24 /*! * Infinite Scroll PACKAGED v3.0.4 * Automatically add next page * * Licensed GPLv3 for open source use * or Infinite Scroll Commercial License for commercial use * * https://infinite-scroll.com * Copyright 2018 Metafizzy */ !function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,r,l){function a(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,a){var h=l.data(a,i);if(!h)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var c=h[e];if(!c||"_"==e.charAt(0))return void s(r+" is not a valid method");var u=c.apply(h,n);o=void 0===o?u:o}),void 0!==o?o:t}function h(t,e){t.each(function(t,n){var o=l.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),l.data(n,i,o))})}l=l||e||t.jQuery,l&&(r.prototype.option||(r.prototype.option=function(t){l.isPlainObject(t)&&(this.options=l.extend(!0,this.options,t))}),l.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return a(this,t,e)}return h(this,t),this},n(l))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return n.indexOf(e)==-1&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return n!=-1&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o=0,this.isPrefilling?(this.log("prefill"),this.loadNextPage()):this.stopPrefill()},s.getPrefillDistance=function(){return this.options.elementScroll?this.scroller.clientHeight-this.scroller.scrollHeight:this.windowHeight-this.element.clientHeight},s.stopPrefill=function(){this.log("stopPrefill"),this.off("append",this.prefill)},e}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/scroll-watch",["./core","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,function(t,e,i){var n=e.prototype;return e.defaults.scrollThreshold=400,e.create.scrollWatch=function(){this.pageScrollHandler=this.onPageScroll.bind(this),this.resizeHandler=this.onResize.bind(this);var t=this.options.scrollThreshold,e=t||0===t;e&&this.enableScrollWatch()},e.destroy.scrollWatch=function(){this.disableScrollWatch()},n.enableScrollWatch=function(){this.isScrollWatching||(this.isScrollWatching=!0,this.updateMeasurements(),this.updateScroller(),this.on("last",this.disableScrollWatch),this.bindScrollWatchEvents(!0))},n.disableScrollWatch=function(){this.isScrollWatching&&(this.bindScrollWatchEvents(!1),delete this.isScrollWatching)},n.bindScrollWatchEvents=function(e){var i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.pageScrollHandler),t[i]("resize",this.resizeHandler)},n.onPageScroll=e.throttle(function(){var t=this.getBottomDistance();t<=this.options.scrollThreshold&&this.dispatchEvent("scrollThreshold")}),n.getBottomDistance=function(){return this.options.elementScroll?this.getElementBottomDistance():this.getWindowBottomDistance()},n.getWindowBottomDistance=function(){var e=this.top+this.element.clientHeight,i=t.pageYOffset+this.windowHeight;return e-i},n.getElementBottomDistance=function(){var t=this.scroller.scrollHeight,e=this.scroller.scrollTop+this.scroller.clientHeight;return t-e},n.onResize=function(){this.updateMeasurements()},i.debounceMethod(e,"onResize",150),e}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/history",["./core","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,function(t,e,i){var n=e.prototype;e.defaults.history="replace";var o=document.createElement("a");return e.create.history=function(){if(this.options.history){o.href=this.getAbsolutePath();var t=o.origin||o.protocol+"//"+o.host,e=t==location.origin;return e?void(this.options.append?this.createHistoryAppend():this.createHistoryPageLoad()):void console.error("[InfiniteScroll] cannot set history with different origin: "+o.origin+" on "+location.origin+" . History behavior disabled.")}},n.createHistoryAppend=function(){this.updateMeasurements(),this.updateScroller(),this.scrollPages=[{top:0,path:location.href,title:document.title}],this.scrollPageIndex=0,this.scrollHistoryHandler=this.onScrollHistory.bind(this),this.unloadHandler=this.onUnload.bind(this),this.scroller.addEventListener("scroll",this.scrollHistoryHandler),this.on("append",this.onAppendHistory),this.bindHistoryAppendEvents(!0)},n.bindHistoryAppendEvents=function(e){var i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.scrollHistoryHandler),t[i]("unload",this.unloadHandler)},n.createHistoryPageLoad=function(){this.on("load",this.onPageLoadHistory)},e.destroy.history=n.destroyHistory=function(){var t=this.options.history&&this.options.append;t&&this.bindHistoryAppendEvents(!1)},n.onAppendHistory=function(t,e,i){if(i&&i.length){var n=i[0],r=this.getElementScrollY(n);o.href=e,this.scrollPages.push({top:r,path:o.href,title:t.title})}},n.getElementScrollY=function(t){return this.options.elementScroll?this.getElementElementScrollY(t):this.getElementWindowScrollY(t)},n.getElementWindowScrollY=function(e){var i=e.getBoundingClientRect();return i.top+t.pageYOffset},n.getElementElementScrollY=function(t){return t.offsetTop-this.top},n.onScrollHistory=function(){for(var t,e,i=this.getScrollViewY(),n=0;n=i)break;t=n,e=o}t!=this.scrollPageIndex&&(this.scrollPageIndex=t,this.setHistory(e.title,e.path))},i.debounceMethod(e,"onScrollHistory",150),n.getScrollViewY=function(){return this.options.elementScroll?this.scroller.scrollTop+this.scroller.clientHeight/2:t.pageYOffset+this.windowHeight/2},n.setHistory=function(t,e){var i=this.options.history,n=i&&history[i+"State"];n&&(history[i+"State"](null,t,e),this.options.historyTitle&&(document.title=t),this.dispatchEvent("history",null,[t,e]))},n.onUnload=function(){var e=this.scrollPageIndex;if(0!==e){var i=this.scrollPages[e],n=t.pageYOffset-i.top+this.top;this.destroyHistory(),scrollTo(0,n)}},n.onPageLoadHistory=function(t,e){this.setHistory(t.title,e)},e}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/button",["./core","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,function(t,e,i){function n(t,e){this.element=t,this.infScroll=e,this.clickHandler=this.onClick.bind(this),this.element.addEventListener("click",this.clickHandler),e.on("request",this.disable.bind(this)),e.on("load",this.enable.bind(this)),e.on("error",this.hide.bind(this)),e.on("last",this.hide.bind(this))}return e.create.button=function(){var t=i.getQueryElement(this.options.button);if(t)return void(this.button=new n(t,this))},e.destroy.button=function(){this.button&&this.button.destroy()},n.prototype.onClick=function(t){t.preventDefault(),this.infScroll.loadNextPage()},n.prototype.enable=function(){this.element.removeAttribute("disabled")},n.prototype.disable=function(){this.element.disabled="disabled"},n.prototype.hide=function(){this.element.style.display="none"},n.prototype.destroy=function(){this.element.removeEventListener("click",this.clickHandler)},e.Button=n,e}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/status",["./core","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,function(t,e,i){function n(t){r(t,"none")}function o(t){r(t,"block")}function r(t,e){t&&(t.style.display=e)}var s=e.prototype;return e.create.status=function(){var t=i.getQueryElement(this.options.status);t&&(this.statusElement=t,this.statusEventElements={request:t.querySelector(".infinite-scroll-request"),error:t.querySelector(".infinite-scroll-error"),last:t.querySelector(".infinite-scroll-last")},this.on("request",this.showRequestStatus),this.on("error",this.showErrorStatus),this.on("last",this.showLastStatus),this.bindHideStatus("on"))},s.bindHideStatus=function(t){var e=this.options.append?"append":"load";this[t](e,this.hideAllStatus)},s.showRequestStatus=function(){this.showStatus("request")},s.showErrorStatus=function(){this.showStatus("error")},s.showLastStatus=function(){this.showStatus("last"),this.bindHideStatus("off")},s.showStatus=function(t){o(this.statusElement),this.hideStatusEventElements();var e=this.statusEventElements[t];o(e)},s.hideAllStatus=function(){n(this.statusElement),this.hideStatusEventElements()},s.hideStatusEventElements=function(){for(var t in this.statusEventElements){var e=this.statusEventElements[t];n(e)}},e}),function(t,e){"function"==typeof define&&define.amd?define(["infinite-scroll/js/core","infinite-scroll/js/page-load","infinite-scroll/js/scroll-watch","infinite-scroll/js/history","infinite-scroll/js/button","infinite-scroll/js/status"],e):"object"==typeof module&&module.exports&&(module.exports=e(require("./core"),require("./page-load"),require("./scroll-watch"),require("./history"),require("./button"),require("./status")))}(window,function(t){return t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,function(t,e){function i(t,e){for(var i in e)t[i]=e[i];return t}function n(t){if(Array.isArray(t))return t;var e="object"==typeof t&&"number"==typeof t.length;return e?h.call(t):[t]}function o(t,e,r){if(!(this instanceof o))return new o(t,e,r);var s=t;return"string"==typeof t&&(s=document.querySelectorAll(t)),s?(this.elements=n(s),this.options=i({},this.options),"function"==typeof e?r=e:i(this.options,e),r&&this.on("always",r),this.getImages(),l&&(this.jqDeferred=new l.Deferred),void setTimeout(this.check.bind(this))):void a.error("Bad element for imagesLoaded "+(s||t))}function r(t){this.img=t}function s(t,e){this.url=t,this.element=e,this.img=new Image}var l=t.jQuery,a=t.console,h=Array.prototype.slice;o.prototype=Object.create(e.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),this.options.background===!0&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&c[e]){for(var i=t.querySelectorAll("img"),n=0;n